package grape.house.rest.buildingunit.mapper;

import grape.house.rest.buildingunit.form.BuildingUnitListForm;
import grape.house.service.buildingunit.po.BuildingUnit;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.house.rest.buildingunit.form.BuildingUnitCreateForm;
import grape.house.rest.buildingunit.form.BuildingUnitUpdateForm;
import grape.house.rest.buildingunit.form.BuildingUnitListPageForm;
import grape.house.rest.buildingunit.vo.BuildingUnitVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 楼栋单元表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface BuildingUnitWebMapper extends WebMapper<BuildingUnitVo, BuildingUnit> {

    BuildingUnit formToPo(BuildingUnitCreateForm f);
    BuildingUnit formToPo(BuildingUnitUpdateForm f);
    BuildingUnit formToPo(BuildingUnitListPageForm f);
    BuildingUnit formToPo(BuildingUnitListForm f);
}
